﻿import QtQuick 2.0

Image {
    id: start
    source: "qrc:/img/img/startBg.png"
    visible: scale==0?false:true
    scale: 1
    width: window.width
    height: window.height
    fillMode: Image.Stretch

    Behavior on scale {
        SpringAnimation{
            damping: 0.9
            spring: 5
        }
    }

    onScaleChanged: {
        if(scale==0){
            bStartGame = true
        }
    }

    MouseArea{
        anchors.fill: parent
    }

    MouseArea{
        width: 303
        height: 258
        x: 314
        y: 818
        onClicked: {
            //start
            start.scale = 0
        }
    }

    MouseArea{
        width: 303
        height: 258
        x: 684
        y: 583
        onClicked: {
            Qt.quit()
        }
    }
}

